﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BIZMA.BL.Security;

namespace BIZMA._admin
{
    public partial class ControlPanel : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ((BIZMA.Web)Master).Fullpage = true;


            if (!IsPostBack)
            {
                divUser.Visible = SecurityBL.HasSysFunction(SecurityBL.SYSFUNCTION_SYSTEM_USERADMIN);
                divUserSpace.Visible = divUser.Visible;
                divGroups.Visible = SecurityBL.HasSysFunction(SecurityBL.SYSFUNCTION_SYSTEM_USERGROUPS);
                if (divUser.Visible == false && divGroups.Visible == false)
                    divUserAndGroups.Visible = false;
            }

        }
    }
}